//
//  LoginApi.m
//  Demo
//
//  Created by lx on 2019/4/2.
//  Copyright © 2019 mgz. All rights reserved.
//

#import "LoginApi.h"
#import "EncodeControl.h"
@implementation LoginApi

- (instancetype)init{
    if (self = [super init]) {
    }
    return self;
}

- (NSString *)requestUrl {
   
    return @"/user/getphonecode";
}

//请求方法，某人是GET
- (YTKRequestMethod)requestMethod {
    return YTKRequestMethodPOST;
}

//请求体
- (id)requestArgument {
    
    NSString *str = [EncodeControl encodeData:@{@"mobile":@"18647523803",
                                                @"type":@"4"
                                                }];
    
    return @{@"body":str};
}

//- (YTKRequestSerializerType)requestSerializerType{
//    return YTKRequestSerializerTypeJSON;
//}
//
//- (YTKResponseSerializerType)responseSerializerType{
//    return YTKResponseSerializerTypeJSON;
//}



@end
